package net.jxtz.jxtzos.mapper.auth;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.jxtz.jxtzos.entity.auth.Role;
import net.jxtz.jxtzos.entity.auth.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author a123
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 获取用户和角色对应信息的集合
     * @param id 用户id
     * @return 角色集合
     */
    List<Role> getRolesByUserId(@Param("id") Long id);
}
